package com.yc.fresh.bean;

import java.util.Objects;

/**
 * 管理员信息
 * @Auther: HuYang
 * @Date: 2022/11/28 - 11 - 28 - 21:40
 * @Description: com.yc.fresh.bean
 * @version: 1.0
 */
public class AdminInfo {
    private Integer ano;
    private String aname;//姓名
    private String pwd;//密码
    private String te;//电话
    private Integer status;


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof AdminInfo)) return false;
        AdminInfo adminInfo = (AdminInfo) o;
        return Objects.equals(ano, adminInfo.ano) && Objects.equals(aname, adminInfo.aname) && Objects.equals(pwd, adminInfo.pwd) && Objects.equals(te, adminInfo.te) && Objects.equals(status, adminInfo.status);
    }

    @Override
    public int hashCode() {
        return Objects.hash(ano, aname, pwd, te, status);
    }

    @Override
    public String toString() {
        return "AdminInfo{" +
                "ano=" + ano +
                ", aname='" + aname + '\'' +
                ", pwd='" + pwd + '\'' +
                ", te='" + te + '\'' +
                ", status=" + status +
                '}';
    }

    public Integer getAno() {
        return ano;
    }

    public void setAno(Integer ano) {
        this.ano = ano;
    }

    public String getAname() {
        return aname;
    }

    public void setAname(String aname) {
        this.aname = aname;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getTe() {
        return te;
    }

    public void setTe(String te) {
        this.te = te;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
